import pAddressList from '@main/plc/dataOptions/s7/dongfang/meiyingsen/AD-0392';

import addressList from '@main/plc/dataOptions/modbus/dongfang/meiyingsen/AD-0392';

import { setAddressObjFn } from './../utils';

export default [
  {
    connectType: 's7',
    plcId: 'df',
    name: '东方印刷机plc',
    port: '102',
    host: '10.22.1.102',
    rack: 0, // 机架
    slot: 1, // 插槽
    connectReadTime: 300,
    connectOverTime: 5000,
    reConnectNum: 5,
    addressObj: setAddressObjFn(pAddressList),
    pAddressList
  },
  {
    plcId: 'df1',
    name: '东方印刷机水电plc',
    isSerial: true,
    connectType: 'modbus',
    protocol: 'Serial Port',
    path: 'COM1',
    baudRate: 9600, //波特率
    dataBits: 8,
    autoOpen: false,
    stopBits: 1,
    parity: 'none',
    addressList,
    connectReadTime: 1000,
    connectOverTime: 5000
  }
];
